#!/bin/sh
HERE="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
WEB="$HERE/../Resources/web/index.html"

CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
EDGE="/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge"

if [ -x "$CHROME" ]; then
  exec "$CHROME" --app="file://$WEB" --no-first-run
fi

if [ -x "$EDGE" ]; then
  exec "$EDGE" --app="file://$WEB" --no-first-run
fi

exec /usr/bin/open -a Safari "$WEB"
